package cc.marcio.systems.seven.model;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
import javax.persistence.UniqueConstraint;

@Entity
@Table(name = "t_permission", uniqueConstraints = { @UniqueConstraint(columnNames = { "id" }) })
@SequenceGenerator(name = "seq_permission", sequenceName = "seq_permission")
public class Permission implements Serializable {
	

	private static final long serialVersionUID = -8000398803626176689L;

	@Id
	@GeneratedValue(strategy = GenerationType.AUTO, generator = "seq_permission")
	@Column( unique = true, insertable = false, updatable = false )
	private Long id;
	
	private String description;

	public Permission() { }
	
	public Permission(Long id) {
		this();
		this.id = id;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}
}
